package find.prj.lib;

import java.util.ArrayList;

public class GraphNode {
	
	protected String Name;
	protected ArrayList<GraphLink> Links;
	
	public GraphNode(String name) {
		this.Name = name;
		this.Links = new ArrayList<GraphLink>();
	}
	
	public String getName() { return this.Name;	}
	
	public void setName(String name) { this.Name = name; }
	
	public ArrayList<GraphLink> getLinks () { return this.Links; }
	
	public void setLinks(ArrayList<GraphLink> links) { this.Links = links; }
}
	
//------------------------------------------------------------------
class GraphLink {
	protected GraphNode ToNode;
	protected int Distance;
		
	public GraphLink (GraphNode toNode, int distance) {
		this.ToNode = toNode;
		this.Distance = distance;
	}

	public int getDistance () {	return this.Distance; }
	
	public GraphNode getToNode() { return this.ToNode; }

	public GraphNode getNode () { return this.ToNode; }

}


